package com.xiaoai.es.tow;

import com.alibaba.fastjson.JSONObject;
import org.apache.ibatis.session.Configuration;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Author
 * @Date 2021-09-09 01:28
 */
public class MainClass {
    public static void main(String[] args){
        Configuration cfg = new Configuration();
        ESClient client = new ESClient(cfg); // ESClientFactory.getClient();
        Map<String, Object> param = new HashMap<String, Object>();
        param.put("ID", "gler001");
        List<JSONObject> resultList = client.query("com.xiaoai.es.mapper.DslMapper.qryFromES", param, "test_index");
    }
}
